package com.endpoint.swagger2.contrller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @GetMapping(value = "demo/hello")
    public  String  hello(String name){
        return  "hello Swagger2!"+name;
    }
    @GetMapping(value = "user/hello")
    public  String  userhello(String name){
        return  "hello Swagger2!"+name;
    }
}